home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5995 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: newsjunkie.ans.net!philabs!usenet
  2. From: abf@philabs.research.philips.com (Andrew Feldman)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Printing output on TC 3.1 c++
  5. Date: Thu, 08 Feb 1996 00:22:18 GMT
  6. Organization: Philips Laboratories, Briarcliff, NY 10510
  7. Distribution: inet
  8. Message-ID: <4fb525$i2o@philabs.research.philips.com>
  9. References: <4fargr$3sd@geraldo.cc.utexas.edu>
  10. NNTP-Posting-Host: idrpc5.philabs.research.philips.com
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. disoguy@mail.utexas.edu (Ajay Kapoor) wrote:
  14.  
  15. >Sorry to bother everyone with this question but it's an emergency:
  16.  
  17. >How can one print the output on TC 3.1 ?
  18.  
  19. >thanks
  20.  
  21. I tried replying by e-mai, but got a User Unknown. I don't think it's
  22. worth an article, but...
  23.  
  24. Try stdout = stdprn in the first line of main(), but save the old
  25. value of stdout and reset it in the end. If doesn't work, run your
  26. program from the DOS prompt:
  27.  
  28. C>FOO.EXE >FOO.OUT
  29.  
  30. (assuming that FOO.EXE is your program). Then the whole output will be
  31. in the file FOO.OUT. Just print it. If your program reads something
  32. from the keyboard and you also have to print the input, you are in
  33. trouble -- I don't know any software to help you. Except something I
  34. wrote myself, since I had the same problem recently. If it is REALLY
  35. an emergency, write to andrew@ieor.columbia.edu (this is NOT where
  36. this letter came from).
  37.  
  38. Andrew Feldman.
  39.  
  40.  
  41.